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); } } }