public void OneLayer() { var ret = DivisionRepository.GetDefault(); ret.Should().Be(Division); CompanyCount.Should().Be(1); DivisionCount.Should().Be(1); SubDivisionCount.Should().Be(0); }
public void NothingToDo() { var ret = CompanyRepository.GetDefault(); ret.Should().Be(Company); CompanyCount.Should().Be(1); DivisionCount.Should().Be(0); SubDivisionCount.Should().Be(0); }
public void LeaveInitializedProperties() { var ret1 = new SubDivision(); ret1.Division = new Division(); SubDivisionRepository.DecorateNewItem(ret1); CompanyCount.Should().Be(0); DivisionCount.Should().Be(0); SubDivisionCount.Should().Be(0); }
public void PreventRepeatCalls() { var ret1 = new SubDivision(); SubDivisionRepository.DecorateNewItem(ret1); var ret2 = new SubDivision(); SubDivisionRepository.DecorateNewItem(ret2); CompanyCount.Should().Be(1); DivisionCount.Should().Be(1); SubDivisionCount.Should().Be(0); }