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); }
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); }