예제 #1
0
        public void CanCompareRequestEstimates()
        {
            var instance = new RequestEstimate();
            instance.RequestId = 1;
            instance.EstimatedHours = 40;

            var instanceToCompareTo = new RequestEstimate();
            instanceToCompareTo.RequestId = 1;
            instanceToCompareTo.EstimatedHours = 40;

            instance.ShouldEqual(instanceToCompareTo);
        }
예제 #2
0
        public void CanCompareRequestEstimates()
        {
            var instance = new RequestEstimate();

            instance.RequestId      = 1;
            instance.EstimatedHours = 40;

            var instanceToCompareTo = new RequestEstimate();

            instanceToCompareTo.RequestId      = 1;
            instanceToCompareTo.EstimatedHours = 40;

            instance.ShouldEqual(instanceToCompareTo);
        }
예제 #3
0
        public void CanGetRequestEstimate()
        {
            // Establish Context
            RequestEstimate requestEstimateToExpect =
                RequestEstimateInstanceFactory.CreateValidTransientRequestEstimate();

            _requestEstimateRepository.Expect(r => r.Get(1))
            .Return(requestEstimateToExpect);

            // Act
            RequestEstimate requestEstimateRetrieved =
                _requestEstimateManagementService.Get(1);

            // Assert
            requestEstimateRetrieved.ShouldNotBeNull();
            requestEstimateRetrieved.ShouldEqual(requestEstimateToExpect);
        }