public void CanCompareOrgs() { var instance = new Org(); instance.Code = "ABCD"; instance.LongDesc = "Description for Agency ABC"; var instanceToCompareTo = new Org(); instanceToCompareTo.Code = "ABCD"; instanceToCompareTo.LongDesc = "Description for Agency ABC"; instance.ShouldEqual(instanceToCompareTo); }
public void CanGetOrg() { // Establish Context Org orgToExpect = OrgInstanceFactory.CreateValidTransientOrg(); _orgRepository.Expect(r => r.Get(1)) .Return(orgToExpect); // Act Org orgRetrieved = _orgManagementService.Get(1); // Assert orgRetrieved.ShouldNotBeNull(); orgRetrieved.ShouldEqual(orgToExpect); }