public void the_local_timezone_should_be_set()
            {
                //Arrange
                var mockCustomerRepository = new Mock<ICustomerRepository>();

                var customerService = new CustomerService(
                    mockCustomerRepository.Object);

                //Act
                customerService.Create(new CustomerToCreateDto());

                //Assert
                mockCustomerRepository.VerifySet(x => x.LocalTimeZone = It.IsAny<string>());
            }
Пример #2
0
            public void the_local_timezone_should_be_set_as_Malay_Peninsula_Standard_Time()
            {
                //Arrange
                var mockCustomerRepository = new Mock<ICustomerRepository>();

                var customerService = new CustomerService(
                    mockCustomerRepository.Object);

                //Act
                customerService.Create(new CustomerToCreateDto());

                //Assert
                mockCustomerRepository.VerifySet(
                    x => x.LocalTimeZone = It.Is<string>(tz => tz.Equals("Malay Peninsula Standard Time")));
            }