05.08.2019 - 09.08.2019 arası işler

Hata - How to suppress InMemoryEventId.TransactionIgnoredWarning when unit testing with in-memory database with transactions? Link
 public MyDbContext GetContextWithInMemoryDb()  
   {  
     var options = new DbContextOptionsBuilder<MyDbContext>()  
       .UseInMemoryDatabase(Guid.NewGuid().ToString())  
       // don't raise the error warning us that the in memory db doesn't support transactions  
       .ConfigureWarnings(x => x.Ignore(InMemoryEventId.TransactionIgnoredWarning))  
       .Options;  
     return new MyDbContext(options);   
   }  

Asp.net core projenizi linux makina üzerinde yayınlamak ve servis olarak çalıştırmak için takip etmeniz gereken yöntemler Link systemctl kullanma Link

- Moq kütüphanesi ile test ederken bir fonksiyonun çağırılıp çağırılmadığını kontrol etmek için bu şekilde bir test yazılabilir. Link Link Moq kütüphanesi Link

- Test yazarken google recaptha ile kodunuzu test etmek isterseniz bu sayfadan google'ın test amaçlı site key ve secret key temin edebilirsiniz. Link Link

- Testleri okunaklı yazmak için güzel bir kütüphane fluent assertions Link

- Entity framework ile test yaparken bazı entityler içindeki properytleri ignore etmek istersek Link

- Entity framework ile yapılan testlerde alınan bir hata : An item with the same key has already been added. Çözüm için Link Link

- Entity framework Core test etmek için mock altyapısının hazırlanması için önerilen teknikler Link

- Asp.net controller için test yazım şekilleri Link

- Actionfilter test etmek için unit test yazım örneği Link Link Link Link

Hata - The instance of entity type cannot be tracked because another instance with the same key value for {'Id'} is already being tracked Link Link

Entityframework tutorial Link

Youtube embed kodunun sitenizde responsive çıkmasını sağlamak için Link

Async metodları dotnet framework üzerinde unit test yapmak Link Link

Expresion> metodları unit test ile test etmek Link

Unit test moq kütüphanesi kullanırken it.is any öğelerini filtreleme Link

Logging with enums in .net core Link

Moq ile setup edilen nesnenin null döndürmesini istersek Link

Split etmenin değişik yöntemleri Link

Moq nesneye task döndürmek Link

Yorumlar

Bu blogdaki popüler yayınlar

22.06.2020 - 26.06.2020 arası işler

Asp.net RestSharp ile data post etmek

List Box Item içindeki elemanları aşağı veya yukarı taşımak