private void Assert(RecipeInstructionDto item) { item.Should().NotBeNull(); item.HasData.Should().BeTrue(); item.RecipeInstructionId.Should().NotBeEmpty(); item.RecipeId.Should().NotBeEmpty(); item.Sequence.Should().BeGreaterThan(0); item.Instruction.Should().NotBeNullOrWhiteSpace(); }
private void AssertEquality(RecipeInstructionDto item1, RecipeInstructionDto item2) { item1.Should().NotBeNull(); item2.Should().NotBeNull(); item1.HasData.Should().BeTrue(); item2.HasData.Should().BeTrue(); item1.ShouldBeEquivalentTo(item2, options => options.Excluding(x => x.ChangeDate).Excluding(x => x.CreateDate)); }