コード例 #1
0
        public async void FavortiesServiceTests_AddFavCurrency_Currency_Should_Not_Be_Added()
        {
            //Arrange
            FavoritesService favoritesService = CreateFavoritesService();
            ClaimsIdentity   claims           = new ClaimsIdentity(new Claim[] { new Claim(ClaimTypes.Name, _testUserName) });
            ClaimsPrincipal  user             = new ClaimsPrincipal(claims);
            int  currencyId = _firstTestCurrencyId;
            bool result     = true;

            //Act
            result = await favoritesService.AddFavCurrency(currencyId, user);

            //Assert
            Assert.False(result);
        }