public async Task Add_Finance_Test()
        {
            FinanceData data = new FinanceData()
            {
                Category = "test", Title = "Title in test", Currency = "RUB", Date = "01.01.2021", Money = "20", Operation = "Приход"
            };

            string login = "******";

            Assert.AreEqual(1, await financeService.AddFinance(data, login));
        }
示例#2
0
 public async Task AddFinance([FromBody] FinanceData data)
 {
     data.Money = data.Money.Replace('.', ',');
     await _service.AddFinance(data, User.Identity.Name);
 }