28 lines
963 B
C#
Raw Permalink Normal View History

2025-02-13 16:13:21 +04:00
using System;
using NUnit.Framework;
using CandyHouseBase.DataModels;
namespace CandyHouseTests.DataModelsTests
{
[TestFixture]
public class PekarHistoryModelDataTests
{
[Test]
public void CreatePekarHistoryDataModel_ValidData_ShouldCreateSuccessfully()
{
var peKarId = Guid.NewGuid().ToString();
var fio = "John Doe";
var positionId = Guid.NewGuid().ToString();
var bonusCoefficient = 1.5m;
var dateTime = DateTime.Now;
var peKarHistory = new PekarHistoryDataModel(peKarId, fio, positionId, bonusCoefficient, dateTime);
Assert.AreEqual(peKarId, peKarHistory.PekarId);
Assert.AreEqual(fio, peKarHistory.FIO);
Assert.AreEqual(positionId, peKarHistory.PositionId);
Assert.AreEqual(bonusCoefficient, peKarHistory.BonusCoefficient);
Assert.AreEqual(dateTime, peKarHistory.Date);
}
}
}