예제 #1
0
 public MemberCreatingResponse CreateNewMember(MemberCreatingRequest memberCreatingRequest)
 {
     return(new MemberCreatingResponse
     {
         Date = memberCreatingRequest.Date,
         Email = memberCreatingRequest.Email,
         Lastname = memberCreatingRequest.Lastname,
         Firstname = memberCreatingRequest.Firstname
     });
 }
        public void ShouldCheckMemberCreatingRequestData(string firstname, string lastname, string email)
        {
            // Arrange
            var processor = new MemberCreatingRequestService();
            MemberCreatingRequest memberCreatingRequest = CreateNewMemberCreatingRequest(firstname, lastname, email);

            // Act
            MemberCreatingResponse response = processor.CreateNewMember(memberCreatingRequest);

            // Assert
            Assert.NotNull(response);

            //Assert.Equal(memberCreatingRequest.Firstname, response.Firstname);
            memberCreatingRequest.Firstname.Should().Be(response.Firstname);
            memberCreatingRequest.Lastname.Should().Be(response.Lastname);
            memberCreatingRequest.Email.Should().Be(response.Email);
            memberCreatingRequest.Date.Should().Be(response.Date);
        }