コード例 #1
0
        public void ShouldMapOperationToGetOperationsResultSucessAndBeEquivalent()
        {
            //Arrange
            var operations = FakeOperation.CreateOperationsSuccess();

            //Act
            var result = operations.MapToResult();

            //Assert
            result.Should().BeEquivalentTo(operations, options => options.ExcludingMissingMembers().Excluding(c => c.Type));

            var mappedType = operations.Select(a => a.Type.GetDescription());

            result.All(c => mappedType.Contains(c.Type)).Should().BeTrue();
        }