-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated EasyRepro to latest version. Workaround for #78 implemented until EasyRepro provides a fix Workaround for #88 implemented until EasyRepro provides a fix Fixed #89. Dialogs working again.
- Loading branch information
Showing
30 changed files
with
1,052 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Vermaat.Crm.Specflow.EasyRepro | ||
{ | ||
public enum ContainerType | ||
{ | ||
Body, Header, Dialog | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Microsoft.Dynamics365.UIAutomation.Api.UCI; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Vermaat.Crm.Specflow.EasyRepro.FieldTypes | ||
{ | ||
public class BooleanValue | ||
{ | ||
public BooleanValue(bool? value) | ||
{ | ||
Value = value; | ||
} | ||
|
||
public bool? Value { get; } | ||
|
||
public string TextValue => Value?.ToString(CultureInfo.InvariantCulture); | ||
|
||
public BooleanItem ToBooleanItem(string logicalName) | ||
{ | ||
return new BooleanItem { Name = logicalName, Value = Value.GetValueOrDefault() }; | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Vermaat.Crm.Specflow/EasyRepro/FieldTypes/DateTimeValue.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Microsoft.Xrm.Sdk.Metadata; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Vermaat.Crm.Specflow.EasyRepro.FieldTypes | ||
{ | ||
public class DateTimeValue | ||
{ | ||
public DateTimeValue(DateTimeAttributeMetadata metadata, DateTime? value) | ||
{ | ||
if (value.HasValue && metadata.DateTimeBehavior == DateTimeBehavior.UserLocal) | ||
{ | ||
var offset = GlobalTestingContext.ConnectionManager.CurrentConnection.UserSettings.TimeZoneInfo.GetUtcOffset(value.Value); | ||
Value = value.Value.Add(offset); | ||
} | ||
else | ||
Value = value; | ||
} | ||
|
||
public DateTime? Value { get; } | ||
|
||
} | ||
} |
Oops, something went wrong.