Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Muflone.SpecificationTests

Helper for creating specification tests with Muflone

Install

Install-Package Muflone.SpecificationTests

Usage

Look at this repo

Repository mocking

In the test's constructor implement your mock and replace the Repository property

public void MyTest()
{
  var repo = new Mock<InMemoryEventRepository> { CallBase = true };
  repo.Setup(x => x.GetById<Product>(It.IsAny<string>(), productId)).Returns(product);
  Repository = repo.Object;
}

About

Support for testing events

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages