Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }