public void ChangeCodeSetCategory_1() { var codeSetList = new List <CodeSet>(); codeSetList.Add(_codeSetDerived); _agencyDerived.SetCodeSetsCollection(codeSetList); _unitOfWorkAdmin.Setup(item => item.Find <CodeSet>(It.IsAny <Guid>(), It.IsAny <TrackingMode>(), It.IsAny <ThrowIf>())) .Returns(_codeSetDerived); _codeSetCommandService.ChangeCodeSetCategory(_codeSetDerived.Id, "newcategory"); _codeSetDerived.Category.Should().Be("newcategory"); }
public void ChangeCodeSetCategory_3() { var codeSetList = new List <CodeSet>(); _agencyDerived = new AgencyDerived(_jurisdiction, "name"); codeSetList.Add(_codeSetDerived); _agencyDerived.SetCodeSetsCollection(codeSetList); _unitOfWorkAdmin.Setup(item => item.Find <CodeSet>(It.IsAny <Guid>(), It.IsAny <TrackingMode>(), It.IsAny <ThrowIf>())) .Returns(_codeSetDerived); _codeSetCommandService.ChangeCodeSetCategory(Guid.NewGuid(), "newcategory"); }