public void Static_Resolve_Default_Should_Call_Once() { for (int i = 0; i < 3; i++) { var fooService = FooService.Resolve(); fooService.Counter.TotalCount.ShouldEqual(1); } FooService.Resolve.ShouldEqual(SimpleLazyFactory <IFooService> .Instance.Resolve); }