sm-g

Results 17 issues of sm-g

Looking at source code I could not found example of DomainService, i.e. for some volatile policy, or use case, involving several aggregates. I am looking for how your `IBusinessRule` pattern...

enhancement
resolved

Since VS 15.6.1 CodeMaid 10.4 Widnows 7 after update VS - saving file does not trigger CodeMaids's Cleanup action. It works when I manually hit "Cleanup active document"

not reproduced

I want to write such code: `from data in Gen.OneOf(FailDataGenerator(),ExDataGenerator(), RatesDataGenerator())` where each of `DataGenerators` return specific types. Currently this problem solved by casting result from Generators to interface: ```...

enhancement

I have `Task.WhenAll(tasks)`, and each task uses AutoMapper's ValueResolver which has dependency, resolved via DI. ``` public AutoMapperRegistry() { ForSingletonOf().Use("Build AutoMapper config", ctx => { var profiles = ctx.GetAllInstances(); var...

``` int firstItemHash = _collection.FirstOrDefault()?.GetHashCode() ?? 0; ```

``` public override string ToString() { return base.ToString() + ","; } ``` It cannot be `return base + ",";`

```cs public void Command_CanBeSerialized(Command command) where TAction : IActionWithEntity where TModel : IModel { } ``` `TDto` _is_ used here RE 5.4.0, VS 15.5.5

``` public class Builder { private readonly bool _isProduction; public Builder(IsProduction isProduction) { _isProduction = isProduction(); } public delegate bool IsProduction(); public string Build() { return string.Empty; } } ```

async void is legal for event handlers: ```csharp _creator.Created += async (s, e) => { // do work await _runner.RunAndSave(() => { // do work }); }; ```

```cs public class QbCacheWriterTests : QbCacheTestsBase { private StoreWithQbItems store; private QbCacheWriter CreateQbCacheWriter(DataStub store) // warns Parameter 'store' hides field 'store' { ... } protected override IReadOnlyCollection MakeDbSetMocks(DataStub store, dynamic...