public void AddMonthlyPackageMethod_MonthlyPackageInput_IncrementsMonthlyPackagesCount() { var sut = new Gym(); Assert.AreEqual(0, sut.MonthlyPackages.Count()); sut.AddMonthlyPackage(new MonthlyPackage()); Assert.AreEqual(1, sut.MonthlyPackages.Count()); }
public void AddMonthlyPackageMethod_DuplicateInput_ThrowsException() { var sut = new Gym(); var monthlyPackage1 = new MonthlyPackage {Id = 1535235}; sut.AddMonthlyPackage(monthlyPackage1); sut.AddMonthlyPackage(monthlyPackage1); }
public void MonthlyPackagesProperty_Getter_HasCountOf0() { var sut = new Gym(); Assert.AreEqual(0, sut.MonthlyPackages.Count()); }
public void Constructor_NoInputParams_IsInstanceOfEntityBase() { var sut = new Gym(); Assert.IsInstanceOfType(typeof(EntityBase), sut); }