/// <summary> /// Build a mockup for an identifiable domain object in the food waste domain. /// </summary> /// <returns>Mockup for an identifiable domain object in the food waste domain.</returns> public static IIdentifiable BuildIdentifiableMock() { IIdentifiable identifiableMock = MockRepository.GenerateMock <IIdentifiable>(); identifiableMock.Expect(m => m.Identifier) .Return(Guid.NewGuid()) .Repeat.Any(); return(identifiableMock); }