Ejemplo n.º 1
0
        public async Task UsersViewModel_Should_NOT_Validate_THESAME_Username()
        {
            //Arrange
            var user = new Fixture().Create <User>();
            var vm   = new UsersViewModel();
            await vm.AddItem(user);

            //Act
            var result = vm.ValidateUsername(user.Username);

            //Assert
            Assert.False(result);
        }