示例#1
0
        public AddCohortCommandWithOtherPartyHandlerTestsFixture WithGeneratedHash(string hash)
        {
            EncodingServiceMock
            .Setup(hs => hs.Encode(It.IsAny <long>(), It.Is <EncodingType>(encoding => encoding == EncodingType.CohortReference)))
            .Returns(hash);

            return(this);
        }
        public CreateCohortWithDraftApprenticeshipControllerTestFixtures SetupEncodingService()
        {
            EncodingServiceMock
            .Setup(e => e.Encode(It.IsAny <long>(), EncodingType.ApprenticeshipId))
            .Returns("APP123");

            return(this);
        }