/// <summary> /// Asserts that the subject result is equivalent to the expected result. /// </summary> public AndConstraint <TAssertions> BeDto(TServiceDto expected) { Execute.Assertion .ForCondition(ServiceDataUtility.AreEquivalentDtos(Subject, expected)) .FailWith("Expected {context:DTO} to be \n {0}\n but found\n {1}", expected, Subject); return(new AndConstraint <TAssertions>((TAssertions)this)); }
public override bool IsEquivalentTo(GetWidgetResponseDto?other) { return(other != null && ServiceDataUtility.AreEquivalentDtos(Widget, other.Widget) && ETag == other.ETag && NotModified == other.NotModified); }
public override bool IsEquivalentTo(CreateWidgetResponseDto?other) { return(other != null && ServiceDataUtility.AreEquivalentDtos(Widget, other.Widget) && Url == other.Url && ETag == other.ETag); }
/// <summary> /// Determines if two DTOs are equivalent. /// </summary> public override bool IsEquivalentTo(PreferenceDto other) { return(other != null && IsBoolean == other.IsBoolean && ServiceDataUtility.AreEquivalentFieldValues(Booleans, other.Booleans) && Double == other.Double && ServiceDataUtility.AreEquivalentFieldValues(Doubles, other.Doubles) && Integer == other.Integer && ServiceDataUtility.AreEquivalentFieldValues(Integers, other.Integers) && String == other.String && ServiceDataUtility.AreEquivalentFieldValues(Strings, other.Strings) && ServiceDataUtility.AreEquivalentBytes(Bytes, other.Bytes) && ServiceDataUtility.AreEquivalentFieldValues(Byteses, other.Byteses) && WidgetField == other.WidgetField && ServiceDataUtility.AreEquivalentFieldValues(WidgetFields, other.WidgetFields) && ServiceDataUtility.AreEquivalentDtos(Widget, other.Widget) && ServiceDataUtility.AreEquivalentFieldValues(Widgets, other.Widgets) && ServiceDataUtility.AreEquivalentResults(Result, other.Result) && ServiceDataUtility.AreEquivalentFieldValues(Results, other.Results) && BigInteger == other.BigInteger && ServiceDataUtility.AreEquivalentFieldValues(BigIntegers, other.BigIntegers) && Decimal == other.Decimal && ServiceDataUtility.AreEquivalentFieldValues(Decimals, other.Decimals) && ServiceDataUtility.AreEquivalentDtos(Error, other.Error) && ServiceDataUtility.AreEquivalentFieldValues(Errors, other.Errors) && ServiceDataUtility.AreEquivalentObjects(Object, other.Object) && ServiceDataUtility.AreEquivalentFieldValues(Objects, other.Objects) && ServiceDataUtility.AreEquivalentFieldValues(NamedStrings, other.NamedStrings) && ServiceDataUtility.AreEquivalentFieldValues(NamedWidgets, other.NamedWidgets)); }
/// <summary> /// Determines if two DTOs are equivalent. /// </summary> public override bool IsEquivalentTo(GetWidgetsResponseDto other) { return(other != null && ServiceDataUtility.AreEquivalentFieldValues(Widgets, other.Widgets) && Total == other.Total && TotalWeight == other.TotalWeight && ServiceDataUtility.AreEquivalentDtos(Job, other.Job)); }
public override bool IsEquivalentTo(RequiredRequestDto?other) { return(other != null && Query == other.Query && Normal == other.Normal && ServiceDataUtility.AreEquivalentDtos(Widget, other.Widget) && ServiceDataUtility.AreEquivalentFieldValues(Widgets, other.Widgets) && ServiceDataUtility.AreEquivalentFieldValues(WidgetMatrix, other.WidgetMatrix) && ServiceDataUtility.AreEquivalentResults(WidgetResult, other.WidgetResult) && ServiceDataUtility.AreEquivalentFieldValues(WidgetResults, other.WidgetResults) && ServiceDataUtility.AreEquivalentFieldValues(WidgetMap, other.WidgetMap) && ServiceDataUtility.AreEquivalentDtos(HasWidget, other.HasWidget)); }
/// <summary> /// Determines if two DTOs are equivalent. /// </summary> public override bool IsEquivalentTo(AnyDto other) { return(other != null && String == other.String && Boolean == other.Boolean && Double == other.Double && Int32 == other.Int32 && Int64 == other.Int64 && Decimal == other.Decimal && ServiceDataUtility.AreEquivalentBytes(Bytes, other.Bytes) && ServiceDataUtility.AreEquivalentObjects(Object, other.Object) && ServiceDataUtility.AreEquivalentDtos(Error, other.Error) && ServiceDataUtility.AreEquivalentDtos(Data, other.Data) && Enum == other.Enum && ServiceDataUtility.AreEquivalentDtos(Array, other.Array) && ServiceDataUtility.AreEquivalentDtos(Map, other.Map) && ServiceDataUtility.AreEquivalentDtos(Result, other.Result)); }
public override bool IsEquivalentTo(HasWidgetDto?other) { return(other != null && ServiceDataUtility.AreEquivalentDtos(Widget, other.Widget)); }
/// <summary> /// Determines if two DTOs are equivalent. /// </summary> public override bool IsEquivalentTo(KitchenRequestDto other) { return(other != null && ServiceDataUtility.AreEquivalentDtos(Sink, other.Sink)); }
/// <summary> /// Determines if two DTOs are equivalent. /// </summary> public override bool IsEquivalentTo(CreateWidgetResponseDto other) { return(other != null && ServiceDataUtility.AreEquivalentDtos(Widget, other.Widget)); }
public override bool IsEquivalentTo(GenerateResponseDto?other) { return(other != null && ServiceDataUtility.AreEquivalentFieldValues(Output, other.Output) && ServiceDataUtility.AreEquivalentDtos(Failure, other.Failure)); }
public override bool IsEquivalentTo(MirrorFieldsResponseDto?other) { return(other != null && ServiceDataUtility.AreEquivalentDtos(Field, other.Field) && ServiceDataUtility.AreEquivalentFieldValues(Matrix, other.Matrix)); }
/// <summary> /// Determines if two DTOs are equivalent. /// </summary> public override bool IsEquivalentTo(GenerateRequestDto other) { return(other != null && ServiceDataUtility.AreEquivalentDtos(Definition, other.Definition) && ServiceDataUtility.AreEquivalentDtos(Generator, other.Generator)); }
/// <summary> /// Determines if two DTOs are equivalent. /// </summary> public override bool IsEquivalentTo(SetPreferenceRequestDto other) { return(other != null && Key == other.Key && ServiceDataUtility.AreEquivalentDtos(Value, other.Value)); }
/// <summary> /// Determines if two DTOs are equivalent. /// </summary> public override bool IsEquivalentTo(GetPreferenceResponseDto other) { return(other != null && ServiceDataUtility.AreEquivalentDtos(Value, other.Value)); }